const { defineConfig } = require('@vue/cli-service')
const pxtorem = require('postcss-pxtorem')
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            pxtorem({
              rootValue: 37.5,
              propList: ['*', '!font*'],
            }),
          ],
        },
      },
    },
  },
  devServer: {
    proxy: {
      '/xiongmao': {
        target: 'http://www.xiongmaoyouxuan.com',
        changeOrigin: true,
        pathRewrite: {
          '^/xiongmao': '',
        },
      },
    },
  },
})
